<div class="page_head">
  <span>
    <%= link_to 'Edit'.t, edit_writeboard_path(params[:project_id],@writeboard),:class=>"admin"%>
     <a href="#" class="admin" onclick="javascript:
            name = prompt('<%="Input the new writeboard name:".t%>', $('wname').innerHTML);
            if (name && name!= 'null'){
	       Element.show('indicator_rname');
	       new Ajax.Request('/writeboards/change_name/?name='+ encodeURIComponent(name) +'&project_id=<%=params[:project_id]%>&wrid=<%=@writeboard.id%>',{asynchronous:true, evalScripts:true});
	     }  else {
     }"><%="Rename".t%></a>
    </span> 
     <%=indicator('rname')%>
  <h2 id='wname'><%=@writeboard.name %></h2>
   <span class=intro_txt style="margin-bottom:0px;margin-top:0px;border-bottom:1px #ccc dashed">
   <%="Initialized by:".t + @writeboard.user.name + " on ".t + @writeboard.created_at.strftime('%Y-%m-%d %H:%M')%> | 
   <%="Last updated by:".t + @writeboard.wikis.first.user.name + " on ".t + @writeboard.wikis.first.created_at.strftime('%Y-%m-%d %H:%M')%><br/>
   </span>
</div>
<br/>
  <%if @wiki%>
  <%=CGI.unescapeHTML(@wiki.content)%>
  <%else%>
  <%=CGI.unescapeHTML(@writeboard.wikis.first.content)%>
  <%end%>



